char* xstrrstr(const char* s1, const char* s2);
void rtrim(char* s);
char* lrtrim(char* s);
-int xasprintf(char** strp, const char* fmt, ...);
+int xasprintf(char** strp, const char* fmt, ...) PRINTFLIKE(2, 3);
int xvasprintf(char** strp, const char* fmt, va_list ap);
char* strupper(char* src);
char* strlower(char* src);
wpt = waypt_new();
xasprintf(&wpt->shortname, "POI_%s", poinames[poi]);
- xasprintf(&wpt->description, "miniHomer points to this coordinates if the %s symbol is on", poi, poinames[poi]);
+ xasprintf(&wpt->description, "miniHomer points to this coordinates if the %s symbol is on", poinames[poi]);
wpt->latitude = lat;
wpt->longitude = lng;
wpt->altitude = alt;